package com.solution.admin.promotion.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.promotion.entity.PromotionRuleGiftEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 活动规则-满赠信息DAO接口
 * @author xu_cc
 * @date 2017-09-27 23:27:01
 */
public interface PromotionRuleGiftDao extends BaseDao<PromotionRuleGiftEntity> {
	
	/**
	 * 保存活动规则-满赠信息
	 * @param promotionRuleGiftEntity
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:01
	 */
	public long savePromotionRuleGift(PromotionRuleGiftEntity promotionRuleGiftEntity);

	/**
	 * 分页查询活动规则-满赠信息信息
	 * @param pageParam 分页对象
	 * @param promotionRuleGift 分页参数
	 * @return PageBean 分页参数及数据
	 * @author xu_cc
	 * @date 2017-09-27 23:27:01
	 */
	public PageBean listPromotionRuleGiftPage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新活动规则-满赠信息
	 * @param promotionRuleGiftEntity
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:01
	 */
	public int updatePromotionRuleGift(PromotionRuleGiftEntity promotionRuleGiftEntity);


	/**
	 * 删除活动规则-满赠信息角色
	 * @param id
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:01
	 */
	public int deleteById(Long promotionId);
	
	/**
	 * 根据活动规则-满赠信息类型获取活动规则-满赠信息
	 * @param param
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:01
	 */
	public List<PromotionRuleGiftEntity> listPromotionRuleGift(Long promotionId);
}
